﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace QuanLyShopCD
{
    public partial class frm_main : Form
    {
        public frm_main()
        {
            Thread t = new Thread(new ThreadStart(load_spash));
            t.Start();
            Thread.Sleep(5000);
            t.Abort();
            InitializeComponent();
        }
        public void load_spash()
        {
            Application.Run(new Splash());
        }
        private void hToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void danhMụcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_QLDanhMuc2 f = new frm_QLDanhMuc2();
            f.MdiParent = this;
            f.Show();
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult result;
            result = MessageBox.Show("ban co muon thoat hay ko","thong bao",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
            if(result==DialogResult.OK)
                Application.Exit();
        }

        private void danhMucToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLyShopCD.GUI.frm_caydanhmuc f = new QuanLyShopCD.GUI.frm_caydanhmuc();
            f.MdiParent = this;
            f.Show();
        }

        private void đĩaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLyShopCD.GUI.frm_QLCD f = new QuanLyShopCD.GUI.frm_QLCD();
            f.MdiParent = this;
            f.Show();
        }

        private void quanLyCDToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLyShopCD.GUI.bt_them f = new QuanLyShopCD.GUI.bt_them();
            f.MdiParent = this;
            f.Show();
        }

        private void danhMucToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            QuanLyShopCD.GUI.tinh_danhmuc f = new QuanLyShopCD.GUI.tinh_danhmuc();
            f.MdiParent = this;
            f.Show();
        }

        private void frm_main_Load(object sender, EventArgs e)
        {

        }

        private void thuêĐĩaToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }
    }
}
